# 读取登入数据
import json

import app



def read_data(filename):
    # 打开外部文件
    with open(filename, mode='r', encoding='utf-8') as f:
        json_data = json.load(f)
        result_list = list()
        for login_data in json_data:
            result_list.append(tuple(login_data.values()))

        return result_list





